#ifndef __SWTIMER_H
#define __SWTIMER_H
#include <stdlib.h>
#include "config.h"



typedef struct SWTimer_t
{
    unsigned long timerout;
    unsigned long delayValue;
    unsigned long repeat;
    void (*timerout_cb)(void);
    struct SWTimer_t* Next;
    struct SWTimer_t* Pre;
}SWTimer;

void SWTimerInstall(void);
void SWTimerInit(SWTimer* Handle,void (*timeout_cb)(), unsigned long timeout, unsigned long repeat);
void SWTimerStart(SWTimer* Handle);
void SWTimerStop(SWTimer* Handle);
void SWTimerLoop(void);
void SWTimerTicks(void);




#endif





